// 自动播放
var auto = function () {
  if (!document.getElementsByClassName('qrcode')) {
    console.log('element qrcode unfound');
    return;
  }

  let l = document.getElementsByClassName('qrcode').length;
  if (l <= 0) {
    console.log('element qrcode length: ' + l);
    return;
  }

  let qrcodeboxDisplay = document.getElementsByClassName('qrcode')[0].style.display;
  if (qrcodeboxDisplay != 'block') {
    console.log('视频正在播放');
    return;
  }

  if (!document.getElementsByClassName('nextware')) {
    console.log('element nextware unfound');
    return;
  }

  let nextwareDisplay = document.getElementsByClassName('nextware')[0].style.display;
  if (nextwareDisplay != 'block') {
    console.log('目前是暂停状态');
    return;
  }

  document.getElementsByClassName('nextlink')[0].click();
}

var t1 = window.setInterval(auto, 1000 * 60 * 3);

